<template>
  <p>Home</p>
  <ul>
    <li>Home</li>
  </ul>
</template>

<script setup>
const router = useRouter()
const route = useRoute()
console.log(router) //相当于this.$router
console.log(route) //相当于this.$route

const store = useStore()
const count = computed(() => store.state.count)

console.log(count.value)
</script>

<style scoped lang="scss">
div {
  p,
  ul {
    color: red;
  }
}
</style>
